home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
util
/
time
/
autorebo.lha
/
AutoReboot
/
AutoReboot.doc
< prev
next >
Wrap
Text File
|
1997-01-18
|
1KB
|
45 lines
AutoReboot 1.0 (27.12.96)
--------------
Author: Ralf Gruner, Großschönau, Germany
ralf.gruner@t-online.de
AutoReboot is a very simple watchdog timer written to check the loop
of a Scala presentation. It can be used for all similar processes.
The presentation of our local TV hangs sometimes (maybe caused by the
Peggy MPEG decoder or SCSI bus errors; I don't know it exactly) and
AutoReboot is a solution to avoid a long time blockade.
AutoReboot is a shell command:
AutoReboot <filename> <seconds>
It looks for the specified file after the given number of seconds.
If it found the file, then AutoReboot deletes it and waits the delay
time again and then it looks for the file again and so on.
If the file is missed, then AutoReboot resets your Amiga.
Sample usage:
My Scala InfoChannel script contains an EXECUTE action (CLI type):
echo >RAM:OK "x"
The loop of the script is not longer than one hour. So I can check
the repetition after 3600 seconds. AutoReboot is started in the
S:User-Startup by the line
run >NIL: AutoReboot RAM:OK 3600
Thats all. Not perfect, but it works fine.
For your information I have included the C source code and sample
scripts for Scala InfoChannel, AmigaVision Professional and MediaPoint.
Ralf